<%
=begin
apps: redis, redis-cluster
platforms: kubernetes, tanzu-application-catalog
id: use_password_file
title: Use a password file
category: administration
weight: 30
highlight: 30
=end %>

To use a password file for Redis you need to create a secret containing the password and then deploy the chart using that secret. Follow these instructions:

* Create the secret with the password. It is important that the file with the password must be called *redis-password*.

        $ kubectl create secret generic redis-password-secret --from-file=redis-password.yaml

* Deploy the Helm Chart using the secret name as parameter:

        usePassword=true
        usePasswordFile=true
        existingSecret=redis-password-secret
        sentinels.enabled=true
        metrics.enabled=true
